package com.kfm.base.oop;

public class Student {

    static String teacher = "佩奇";

    String name = "乔治";

    int age = 3;

    static {
        teacher = "猪爸爸";
    }

    {
        name = "懒大王";
        age = 2;
    }



    public void study() {
        System.out.println("好好学习，天天向上");
    }

    public void introduce() {
        System.out.printf("我叫 %s 今年 %d 岁，老师是 %s \n", name, age, teacher);
    }
}
